package wortubung.inflection;

import java.util.HashSet;

public class UnknownConjugationException extends RuntimeException {

	private static HashSet<String> badVerbs = new HashSet<String>();

	private UnknownConjugationException(String verb) { super(verb); }
	
	public static void badVerb(String msg) throws UnknownConjugationException {
		if (badVerbs.contains(msg))
			return;
		badVerbs.add(msg);
		throw new UnknownConjugationException(msg);
	}
}
